package behavioral.memento;

/**
 * @ClassName: Memento
 * @Description: 备忘录类：存储发起人的内部状态，包含了发起人的所有属性
 * @Author: liu-hao
 * @Date: 2023-04-11 23:14
 * @Version: 1.0
 **/
public class Memento {
    private String name;
    private int age;

    public Memento(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }
}